<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<h:head />

<h:body>

	<ui:composition template="/layout/layout.xhtml">
		<ui:define name="content">
			<h:form>
				<p:panelGrid columns="2">
				
					<p:outputLabel value="id"/>
					<p:inputText value="#{stokeItemController.selected.id}" id="Id" readonly="true"/>
					
					<p:outputLabel value="CodeLabel" />
					<p:inputText value="#{stokeItemController.selected.code}" id="Code" />

					<p:outputLabel value="BuyPrice" />
					<p:calendar value="#{stokeItemController.selected.priceBuy}" />
					
					<p:outputLabel value="SellPrice" />
					<p:calendar value="#{stokeItemController.selected.priceSell}" />

					<p:outputLabel value="PayTaxLabel" />
					<p:selectBooleanCheckbox value="#{stokeItemController.selected.payTax}" id="PayTax" />
				</p:panelGrid>

				<p:commandButton action="#{stokeItemController.save()}" update="@form" value="Create" />
			</h:form>
		</ui:define>
	</ui:composition>

</h:body>
</h:html>